Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate hyper to v1 #550

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update Rust crate hyper to v1 #550

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 20, 2023

This PR contains the following updates:

Package Type Update Change
hyper (source) dependencies major 0.14.31 -> 1.0.0

Release Notes

hyperium/hyper (hyper)

v1.5.1

Compare Source

Bug Fixes
  • http2:
    • pass proper value to h2 max_local_error_reset_streams (4a20147a)
    • improve graceful shutdown during handshake (#​3729) (13b05943)

v1.5.0

Compare Source

Bug Fixes
Features
  • client: Add HTTP/2 builder options header_table_size() and max_concurrent_streams() (4c84e8c1)
  • rt: add ReadBufCursor methods remaining() and put_slice() (#​3700) (5a13041e)
v1.4.1 (2024-07-09)
Bug Fixes
  • http1: reject final chunked if missing 0 (8e5de1bb)

v1.4.1

Compare Source

Bug Fixes
  • http1: reject final chunked if missing 0 (8e5de1bb)

v1.4.0

Compare Source

Bug Fixes
  • http2: stop removing "Trailer" header in HTTP/2 responses as per RFC 9110 (#​3648) (a3269f7a)
  • server: start header read timeout immediately (#​3185) (0eb1b6cf)
Features
v1.3.1 (2024-04-16)
Bug Fixes
  • client: revert auto content-length header for some requests (#​3633)

v1.3.1

Compare Source

Bug Fixes
  • client: revert auto content-length header for some requests (#​3633)

v1.3.0

Compare Source

Bug Fixes
  • client: send content-length even with no body (172fdfaf)
  • http2:
    • max_header_list_size(num) defaults to 16kb (203d1b09)
    • initial_max_send_streams defaults to 100 (2d1bd708)
  • server:
Features
  • client:
    • add max_header_list_size(num) to http2::Builder. (1c5b1b87)
    • add max_pending_accept_reset_streams HTTP2 option (#​3617) (330ddf1d)
  • ext: implement From ReasonPhrase for Bytes (dc27043a)
  • service: expose Service and HttpService trait unconditionally (6aee2e6e)
  • server: relax 'static from connection IO trait bounds (#​3595) (0013bdda)

v1.2.0

Compare Source

Bug Fixes
Features
  • http1: support configurable max_headers(num) to client and server (#​3523) (b1142448)
  • http2:
    • add config for max_local_error_reset_streams in server (#​3530) (d7680e30)
    • add initial_max_send_streams method to HTTP/2 client builder (#​3524) (fdfa60d9)
    • add max_pending_accept_reset_streams(num) back to HTTP/2 server builder (#​3507 (a9fa893f)
Breaking Changes
  • The returned lifetime from Sleep::downcast_mut_pin()
    is no longer 'static. This shouldn't affect most usage. This sort of
    breaking change is needed because it is wrong.

(7206fe30)

v1.1.0

Compare Source

Bug Fixes
Features
v1.0.1 (2023-11-16)

This release "fixes" or adds a few things that should have been in 1.0.0, but were forgotten. Thus, it includes additions that would normally be a semver-minor release, but because it is so close to 1.0.0, it is released as a patch version.

Bug Fixes
Features
  • rt: Make ReadBuf::new public (7161f562)
Breaking Changes
  • Pin is #[fundamental], so providing a Read/Write impl for it theoretically conflicts
    with existing user Read/Write for Pin<...> impls. However, those impls
    probably don't exist yet.
    (dd6d81ca)

v1.0.1

Compare Source

This release "fixes" or adds a few things that should have been in 1.0.0, but were forgotten. Thus, it includes additions that would normally be a semver-minor release, but because it is so close to 1.0.0, it is released as a patch version.

Bug Fixes
Features
  • rt: Make ReadBuf::new public (7161f562)
Breaking Changes
  • Pin is #[fundamental], so providing a Read/Write impl for it theoretically conflicts
    with existing user Read/Write for Pin<...> impls. However, those impls
    probably don't exist yet.
    (dd6d81ca)

v1.0.0

Compare Source

Be sure to check out the upgrading guide.

Bug Fixes
Features
Breaking Changes
  • Upgrade to http 1.0.

(899e92a5)

  • (From previous RCs) ExecutorClient is renamed to
    Http2ClientConnExec, and Http2ConnExec is renamed to
    Http2ServerConnExec.

(52b27faa)

  • If you use client HTTP/1 upgrades, you must call
    Connection::with_upgrades() to still work the same.
    (cf87eda8)

  • HTTP/2 server builder now has a default max concurrent streams. This is a
    behavior change. Consider setting your own maximum.
    (dd638b5b)

  • Do not build any logic depending on the exact types of
    an Error::source(). They are only for debugging.
    (502a6450)

  • The format no longer prints the error chain. Be sure to
    check if you are logging errors directly.

    The Error::message() method is removed, it is no longer needed.

    The Error::into_cause() method is removed.
    (50f123af)

  • The ReasonPhrase::from_bytes_unchecked() method is
    gone. Use from_static() or TryFrom to construct one.

(4021c57b)

v1.0.0-rc.4 (2023-07-10)
Bug Fixes
Features
Breaking Changes
  • Any IO transport type provided must now implement hyper::rt::{Read, Write} instead of
    tokio::io traits. You can grab a helper type from hyper-util to wrap Tokio types, or implement the traits yourself,
    if it's a custom type.
    (f9f65b7a)
  • client::conn::http2 types now use another generic for an Executor.
    Code that names Connection needs to include the additional generic parameter.
    (d977f209)
  • The Service::call function no longer takes a mutable reference to self.
    The FnMut trait bound on the service::util::service_fn function and the trait bound
    on the impl for the ServiceFn struct were changed from FnMut to Fn.

(d894439e)

v1.0.0-rc.3 (2023-02-23)
Bug Fixes
  • server: prevent sending 100-continue if user drops request body (#​3137) (499fe1f9)
Features
Breaking Changes
  • hyper::client::conn::Http2::Builder::new now requires an executor argument.
    (8068aa01)
  • The method
    hyper::client::conn::http1::Builder::executor() is removed, since it did nothing.
    (1de9accf)
v1.0.0-rc.2 (2022-12-29)
Bug Fixes
  • client: send an error back to client when dispatch misbehaves () (75aac9f4, closes #​2649)
  • http2: Fix race condition in client dispatcher (#​3041) (f202230c)
Features
  • body: upgrade to http-body 1.0.0-rc.2 (#​3106) (51b45e3f)
  • client:
    • remove http2_ prefixes from client::conn::http2::Builder methods (669df217)
    • remove http1_ prefixes from client::conn::http1::Builder methods (4cbaef79)
    • implement Clone for http2::SendRequest (#​3042) (00ea49e4, closes #​3036)
    • allow ignoring HTTP/1 invalid header lines in requests (81e25fa8)
  • rt: Clean up Timer trait (#​3037) (8790fee7, closes #​3028)
  • server:
    • remove http1_ method prefixes from server::conn::http2::Builder (291ed0b4)
    • remove http1_ method prefixes from server::conn::http2::Builder (48e70c69)
    • remove server::conn::http2::Builder::with_executor() (#​3089) (ab59a6f7, closes #​3087)
Breaking Changes
  • removes server::conn::http2::Builder::with_executor()
    (ab59a6f7)
  • The return types of Timer have been changed.
    (8790fee7)
  • The return types for Frame::into_data() and Frame::into_trailers() have been changed from Option<T> to Result<T, Self>.
v1.0.0-rc.1 (2022-10-25)
Bug Fixes
Features
Breaking Changes
  • The polling functions of the Body trait have been
    redesigned.

    The free functions hyper::body::to_bytes and aggregate have been
    removed. Similar functionality is on
    http_body_util::BodyExt::collect.
    (0888623d)

  • Either choose a version-specific Connection type, or
    look for the auto-version type in hyper-util.
    (0766d3f7)

  • Pick a version-specific connection, or use the combined
    one in hyper-util.
    (8ae73cac)

  • Change any manual impl tower::Service to implement hyper::service::Service instead. The poll_ready method has been removed.
    (fee7d361)

  • The trait has been renamed.
    (031454e5)

  • A channel body will be available in hyper-util.
    (d963e6a9)

  • Use the types from http-body-util.
    (9e8fc8fc)

  • Use connect from hyper-util.
    (5e206883)

  • A pooling client is in the hyper-util crate.
    (bb3af17c)

  • Tower Service utilities will exist in hyper-util.
    (889fa2d8)

v0.14.19 (2022-05-27)
Bug Fixes
  • http1: fix preserving header case without enabling ffi (#​2820) (6a35c175)
  • server: don't add implicit content-length to HEAD responses (#​2836) (67b73138)
Features
Breaking Changes
  • ffi (unstable):
    • hyper_clientconn_options_new no longer sets the http1_preserve_header_case connection option by default.
      Users should now call hyper_clientconn_options_set_preserve_header_case if they desire that functionality. (78de8914)
v0.14.18 (2022-03-22)
Bug Fixes
  • ffi: don't build C libraries by default (1c663706)
Features
v0.14.17 (2022-02-10)
Bug Fixes
Features
v0.14.16 (2021-12-09)
Bug Fixes
Features
  • http2: add http2_max_send_buf_size option to client and server (bff977b7)
  • server: add HTTP/1 header read timeout option (#​2675) (842c6553, closes #​2457)
v0.14.15 (2021-11-16)
Bug Fixes
  • client: cancel blocking DNS lookup if GaiFuture is dropped (174b553d
Features
  • http1: add http1_writev(bool) options to Client and Server builders, to allow forcing vectored writes (80627141)
  • upgrade: allow http upgrades with any body type (ab469eb3)
v0.14.14 (2021-10-22)
Bug Fixes
  • client:
    • make ResponseFuture implement Sync (bd6c35b9)
    • remove ipv6 square brackets before resolving (910e0268)
Features
  • h2: always include original h2 error on broken pipe (6169db25)
  • server: Remove Send + Sync requirement for Body in with_graceful_shutdown (1d553e52)
v0.14.13 (2021-09-16)
Bug Fixes
  • client: don't reuse a connection while still flushing (c88011da)
  • server: convert panic to error if Connection::without_shutdown called on HTTP/2 conn (ea3e2282)
Features
  • ffi: add hyper_request_set_uri_parts (a54689b9)
  • lib:
    • Export more things with Cargo features (server, !http1, !http2) (0a4b56ac)
    • Export rt module independently of Cargo features (cf6f62c7)
v0.14.12 (2021-08-24)
Bug Fixes
  • ffi: on_informational callback had no headers (39b6d01a)
  • http1: apply header title case for consecutive dashes (#​2613) (684f2fa7)
  • http2: improve errors emitted by HTTP2 Upgraded stream shutdown (#​2622) (be08648e)
Features
v0.14.11 (2021-07-21)
Bug Fixes
  • client: retry when pool checkout returns closed HTTP2 connection (#​2585) (52214f39)
  • http2:
Features
  • ffi: add hyper_request_on_informational (25d18c0b)
v0.14.10 (2021-07-07)
Bug Fixes
  • http1:
    • reject content-lengths that have a plus sign prefix (06335158)
    • protect against overflow in chunked decoder (efd9a982)
Features
  • ffi: add option to get raw headers from response (8c89a8c1)
v0.14.9 (2021-06-07)
Bug Fixes
  • http1: reduce memory used with flatten write strategy (eb0c6463)
v0.14.8 (2021-05-25)
Features
Performance
  • http2: reduce amount of adaptive window pings as BDP stabilizes (#​2550) (4cd06bf2)
v0.14.7 (2021-04-22)
Bug Fixes
  • http1: http1_title_case_headers should move Builder (a303b3c3)
Features
  • server: implement forgotten settings for case preserving (4fd6c4cb)
v0.14.6 (2021-04-21)
Features
v0.14.5 (2021-03-26)
Bug Fixes
Features
v0.14.4 (2021-02-05)
Bug Fixes
  • build: Fix compile error when only http1 feature was enabled.
v0.14.3 (2021-02-05)
Bug Fixes
  • client: HTTP/1 client "Transfer-Encoding" repair code would panic (#​2410) (2c8121f1, closes #​2409)
  • http1: fix server misinterpreting multiple Transfer-Encoding headers (8f93123e)
Features
v0.14.2 (2020-12-29)
Features
v0.14.1 (2020-12-23)
  • Fixes building documentation.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Dec 20, 2023

⚠ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path nativelink-worker/Cargo.toml --package [email protected] --precise 1.3.1
    Updating crates.io index
error: failed to select a version for the requirement `hyper = "^0.14.24"`
candidate versions found which didn't match: 1.3.1
location searched: crates.io index
required by package `axum v0.6.20`
    ... which satisfies dependency `axum = "^0.6.20"` (locked to 0.6.20) of package `nativelink v0.3.0 (/tmp/renovate/repos/github/TraceMachina/nativelink)`
perhaps a crate was updated and forgotten to be re-vendored?

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path nativelink-util/Cargo.toml --package [email protected] --precise 1.3.1
    Updating crates.io index
error: failed to select a version for the requirement `hyper = "^0.14.24"`
candidate versions found which didn't match: 1.3.1
location searched: crates.io index
required by package `axum v0.6.20`
    ... which satisfies dependency `axum = "^0.6.20"` (locked to 0.6.20) of package `nativelink v0.3.0 (/tmp/renovate/repos/github/TraceMachina/nativelink)`
perhaps a crate was updated and forgotten to be re-vendored?

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path nativelink-store/Cargo.toml --package [email protected] --precise 1.3.1
    Updating crates.io index
error: failed to select a version for the requirement `hyper = "^0.14.24"`
candidate versions found which didn't match: 1.3.1
location searched: crates.io index
required by package `axum v0.6.20`
    ... which satisfies dependency `axum = "^0.6.20"` (locked to 0.6.20) of package `nativelink v0.3.0 (/tmp/renovate/repos/github/TraceMachina/nativelink)`
perhaps a crate was updated and forgotten to be re-vendored?

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path nativelink-service/Cargo.toml --package [email protected] --precise 1.3.1
    Updating crates.io index
error: failed to select a version for the requirement `hyper = "^0.14.24"`
candidate versions found which didn't match: 1.3.1
location searched: crates.io index
required by package `axum v0.6.20`
    ... which satisfies dependency `axum = "^0.6.20"` (locked to 0.6.20) of package `nativelink v0.3.0 (/tmp/renovate/repos/github/TraceMachina/nativelink)`
perhaps a crate was updated and forgotten to be re-vendored?

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package [email protected] --precise 1.3.1
    Updating crates.io index
error: failed to select a version for the requirement `hyper = "^0.14.24"`
candidate versions found which didn't match: 1.3.1
location searched: crates.io index
required by package `axum v0.6.20`
    ... which satisfies dependency `axum = "^0.6.20"` (locked to 0.6.20) of package `nativelink v0.3.0 (/tmp/renovate/repos/github/TraceMachina/nativelink)`
perhaps a crate was updated and forgotten to be re-vendored?

Copy link
Contributor

@adam-singer adam-singer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a big enough jump that we should either do incremental update locally to verify, has decent number of breaking changes to be reviewed before upgrade https://github.com/hyperium/hyper/releases

Reviewable status: 0 of 1 LGTMs obtained, and pending CI: Bazel Dev / large-ubuntu-22.04, Cargo Dev / large-ubuntu-22.04, Local / large-ubuntu-22.04, Remote / large-ubuntu-22.04, asan / large-ubuntu-22.04, docker-compose-compiles-nativelink (20.04), docker-compose-compiles-nativelink (22.04), integration-tests (20.04), integration-tests (22.04), large-ubuntu-20.04, large-ubuntu-20.04 / stable, large-ubuntu-22.04, large-ubuntu-22.04 / stable, publish-image, renovate/artifacts, windows-2022 / stable

@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 330c009 to a4bd086 Compare January 22, 2024 00:33
Copy link

vercel bot commented Jan 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nativelink-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2024 6:22am

@renovate renovate bot force-pushed the renovate/hyper-1.x branch from a4bd086 to 39c2adc Compare February 21, 2024 18:02
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 39c2adc to c4783a4 Compare March 1, 2024 19:49
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from c4783a4 to 8d5cf43 Compare March 3, 2024 06:22
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 8d5cf43 to c8b5403 Compare March 12, 2024 00:01
@renovate renovate bot force-pushed the renovate/hyper-1.x branch 4 times, most recently from eea3190 to 17b447f Compare April 17, 2024 15:52
@renovate renovate bot force-pushed the renovate/hyper-1.x branch 2 times, most recently from 13adc66 to 7d58e4a Compare April 26, 2024 20:01
@renovate renovate bot force-pushed the renovate/hyper-1.x branch 2 times, most recently from 376e0d3 to 3b184c2 Compare May 7, 2024 17:59
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 3b184c2 to af0f3e3 Compare May 15, 2024 15:14
Copy link
Contributor Author

renovate bot commented May 15, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path nativelink-store/Cargo.toml --package [email protected] --precise 1.5.1
    Updating crates.io index
error: failed to select a version for the requirement `hyper = "^0.14.26"`
candidate versions found which didn't match: 1.5.1
location searched: crates.io index
required by package `aws-config v1.5.4`
    ... which satisfies dependency `aws-config = "=1.5.4"` (locked to 1.5.4) of package `nativelink-store v0.5.3 (/tmp/renovate/repos/github/TraceMachina/nativelink/nativelink-store)`
    ... which satisfies path dependency `nativelink-store` (locked to 0.5.3) of package `nativelink v0.5.3 (/tmp/renovate/repos/github/TraceMachina/nativelink)`

@renovate renovate bot force-pushed the renovate/hyper-1.x branch 2 times, most recently from d49a27a to 762e583 Compare June 20, 2024 00:23
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 762e583 to 22ebc2a Compare July 1, 2024 15:17
Copy link

cloudflare-workers-and-pages bot commented Jul 1, 2024

Deploying nativelink with  Cloudflare Pages  Cloudflare Pages

Latest commit: c97e693
Status:🚫  Build failed.

View logs

@renovate renovate bot force-pushed the renovate/hyper-1.x branch 2 times, most recently from a1f09ea to 79c3e83 Compare July 17, 2024 16:14
@renovate renovate bot changed the title Update Rust crate hyper to v1 chore(deps): update rust crate hyper to v1 Jul 21, 2024
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 79c3e83 to 517cd17 Compare July 27, 2024 18:46
@renovate renovate bot changed the title chore(deps): update rust crate hyper to v1 fix(deps): update rust crate hyper to v1 Jul 27, 2024
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 517cd17 to b2a920c Compare July 28, 2024 06:31
@renovate renovate bot changed the title fix(deps): update rust crate hyper to v1 Update Rust crate hyper to v1 Jul 30, 2024
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from b2a920c to c97e693 Compare August 1, 2024 00:25
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from c97e693 to 42cf3c6 Compare September 16, 2024 10:15
@renovate renovate bot force-pushed the renovate/hyper-1.x branch from 42cf3c6 to 3d44c76 Compare October 15, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant